{%for activity in activities%}
	<div class='ui-widget-header act-bar'>
		<div class='float-left'><img src='{{activity.image}}'></div>
		<div class='float-left'>
			<p><a href='/activity/detail/{{activity.id}}'><b>{{activity.title[:14]}}{%if activity.title | count > 14%}...{%endif%}</b></a></p>
			<p>{{activity.start_time_display}}&nbsp;{%if activity.end_time%}-&nbsp;{{activity.end_time_display}}{%endif%}</p>
			<p>{{activity.state}}·<a href='/activity/invite/{{activity.id}}'>{{activity.invites.count()}}位参与者</a></p>				
		</div>
		
	</div>		
{%endfor%}